﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Text;
using System.IO;
using System.Xml;
using System.Data;
using Gift.WebApp;
using Gift.Model;
using Gift.DAL;

public partial class cn_member_center_order_info : BasePage
{
    // Fields

    readonly DALGoodsEntitysSpecifications theGoodsEntitysSpecifications = new DALGoodsEntitysSpecifications();
    readonly DALGoodGallery theGoodGallery = new DALGoodGallery();
    readonly DALOrderGoodsEntitys theOrderGoodsEntitys = new DALOrderGoodsEntitys();
    readonly DALOrder theOrder = new DALOrder();
    readonly DALCardOrder theCardOrder = new DALCardOrder();
    readonly DALCar theCar = new DALCar();


    // Methods
    protected StringBuilder OrderBind()
    {
        StringBuilder builder = new StringBuilder();
        try
        {
            if (base.Request.QueryString["orderNo"] == null)
            {
                return builder;
            }
            if (!base.Request.QueryString["orderNo"].Contains("PM_"))
            {
                DataTable orderInfoByOrderNo = this.theCardOrder.GetList(" orderId=" + base.Request.QueryString["orderNo"]).Tables[0];
                if (orderInfoByOrderNo.Rows.Count <= 0)
                {
                    return builder;
                }
                DataRow row = orderInfoByOrderNo.Rows[0];
                builder.AppendLine("<div>");
                builder.AppendLine("<h6>订单状态 [订单编号：" + row["orderId"] + "]</h6>");
                switch (Convert.ToInt32(row["states"]))
                {
                    case 0:
                        builder.AppendLine("<p>新订单</p>");
                        break;

                    case 1:
                        builder.AppendLine("<p>备货中</p>");
                        break;

                    case 2:
                        builder.AppendLine("<p>已发货</p>");
                        break;

                    case 3:
                        builder.AppendLine("<p>已完成</p>");
                        break;

                    case 4:
                        builder.AppendLine("<p>订单已退货</p>");
                        break;
                }
     
                  
                builder.AppendLine("</div>");
                builder.AppendLine("<table>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<th colspan=\"4\">收货信息</th>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td><strong>收货人姓名：</strong></td>");
                builder.AppendLine("<td>" + row["cname"] + "</td>");
                builder.AppendLine("<td></td>");
                builder.AppendLine("<td></td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td><strong>详细地址：</strong></td>");
                builder.AppendLine("<td>" + row["address"] + "</td>");
                builder.AppendLine("<td><strong>邮政编码：</strong></td>");
                builder.AppendLine("<td>" + row["post"] + "</td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td><strong>联系电话：</strong></td>");
                builder.AppendLine("<td>" + row["tel"] + "</td>");
                builder.AppendLine("<td><strong>手机号码：</strong></td>");
                builder.AppendLine("<td>" + row["phone"] + "</td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td colspan=\"1\"><strong>订单备注：</strong></td>");
                builder.AppendLine("<td colspan=\"3\">" + row["content"] + "</td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("</table>");
                builder.AppendLine("<table>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<th colspan=\"4\">支付信息</th>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td><strong>配送方式：</strong></td>");
                builder.AppendLine("<td>" + row["sendCompany"] + ";" + row["sendCode"] + "</td>");
                builder.AppendLine("<td><strong>支付方式：</strong></td>");
                builder.AppendLine("<td>礼品卡：" + row["cardCodes"] +"</td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td><strong>配送费用：</strong></td>");
                builder.AppendLine("<td><em>0</em></td>");
                builder.AppendLine("<td><strong>订单金额：</strong></td>");
                builder.AppendLine("<td><em>" + string.Format("{0:C}", row["totalprice"]) + "</em></td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("</table>");
                DataTable tbCarInfo = this.theCar.GetList(" orderId = " + base.Request.QueryString["orderNo"]).Tables[0];
                builder.AppendLine("<table>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<th>商品图片</th>");
                builder.AppendLine("<th>商品名称</th>");
                builder.AppendLine("<th>购买价格</th>");
                builder.AppendLine("<th>购买数量</th>");
                builder.AppendLine("<th>小计</th>");
                builder.AppendLine("</tr>");
                foreach (DataRow row2 in tbCarInfo.Rows)
                {
                    builder.AppendLine("<tr>");
                    DataTable goodGalleryByGoods = this.theGoodGallery.GetGoodGalleryByGoods(Convert.ToInt32(row2["ProductId"]));
                    builder.AppendLine(string.Concat(new object[] { "<td class=\"firsttd\"><img src=\"", goodGalleryByGoods.Rows[0]["thumbImg"], "\" alt=\"", goodGalleryByGoods.Rows[0]["imgAlt"], "\" /></td>" }));
                    string str = "";
                    str = str + goodGalleryByGoods.Rows[0]["goodsName"];
                    DataTable table4 = this.theGoodsEntitysSpecifications.FrontDeskGetGoodsEntitysSpecificationsByGoodsEntitys(Convert.ToInt32(row2["goodsEntitys"]));
                    if (table4.Rows.Count > 0)
                    {
                        str = str + "[";
                    }
                    for (int i = 0; i < table4.Rows.Count; i++)
                    {
                        object obj2 = str;
                        str = string.Concat(new object[] { obj2, (i > 0) ? "&nbsp;&nbsp;" : "", table4.Rows[i]["specificationsName"], "：", table4.Rows[i]["specificationsValueName"] });
                    }
                    if (table4.Rows.Count > 0)
                    {
                        str = str + "]";
                    }
                    builder.AppendLine("<td>" + str + "</td>");
                    builder.AppendLine("<td>" + string.Format("{0:C}", row2["ProdPrice"]) + "</td>");
                    builder.AppendLine("<td>" + row2["ProdNumber"] + "</td>");
                    builder.AppendLine("<td>" + string.Format("{0:C}", Convert.ToDecimal(row2["ProdPrice"]) * Convert.ToInt32(row2["ProdNumber"])) + "</td>");
                    builder.AppendLine("</tr>");
                }
                builder.AppendLine("</table>");
                builder.AppendLine("<p>订单总金额：<strong>" + string.Format("{0:C}", row["totalprice"]) + "</strong></p>");
            
            }
            else
            {
                DataTable orderInfoByOrderNo = this.theOrder.GetOrderInfoByOrderNo(base.Request.QueryString["orderNo"]);
                if (orderInfoByOrderNo.Rows.Count <= 0)
                {
                    return builder;
                }
                DataRow row = orderInfoByOrderNo.Rows[0];
                builder.AppendLine("<div>");
                builder.AppendLine("<h6>订单状态 [订单编号：" + row["orderNo"] + "]</h6>");
                switch (Convert.ToInt32(row["orderStatus"]))
                {
                    case 0:
                        builder.AppendLine("<p>等待订单处理</p>");
                        break;

                    case 1:
                        builder.AppendLine("<p>订单已确认</p>");
                        break;

                    case 2:
                        builder.AppendLine("<p>订单已取消</p>");
                        break;

                    case 3:
                        builder.AppendLine("<p>订单无效</p>");
                        break;

                    case 4:
                        builder.AppendLine("<p>订单已退货</p>");
                        break;
                }
                if ((Convert.ToInt32(row["orderStatus"]) == 0) || (Convert.ToInt32(row["orderStatus"]) == 1))
                {
                    if (row["payment"].ToString() == "货到付款")
                    {
                        builder.AppendLine("<p>" + ((Convert.ToInt32(row["payStatus"]) == 0) ? "您尚未完成订单支付" : "订单支付完成") + "</p>");
                    }
                    else
                    {
                        builder.AppendLine("<p>" + ((Convert.ToInt32(row["payStatus"]) == 0) ? ("您尚未完成订单支付<input id=\"btnOrderPay\" type=\"button\" class=\"submit_btn\" value=\"立即支付\" /><input id=\"btnOrderCancel\" type=\"button\" class=\"submit_btn\" value=\"取消订单\" onclick=\"confirmMessage('您确定要取消订单吗？','/cn/member_center/order_cancel.ashx?orderNo=" + row["orderNo"] + "');\" />") : "订单支付完成") + "</p>");
                        builder.AppendLine("<input id=\"hdfOrderNo\" type=\"hidden\" value=\"" + row["orderNo"] + "\" />");
                        builder.AppendLine("<input id=\"hdfPayment\" type=\"hidden\" value=\"" + row["payment"] + "\" />");
                    }
                    switch (Convert.ToInt32(row["deliveryStatus"]))
                    {
                        case 0:
                            builder.AppendLine("<p>未发货</p>");
                            break;

                        case 1:
                            builder.AppendLine("<p>已发货<input id=\"btnConfirm\" type=\"button\" class=\"submit_btn\" value=\"确认收货\" /></p>");
                            break;

                        case 2:
                            builder.AppendLine("<p>已收货<br /><a href=\"/cn/goods_comment.html?orderNo=" + row["orderNo"] + "\">商品评价</a></p>");
                            break;
                    }
                    if (Convert.ToInt32(row["payStatus"]) == 0)
                    {
                        builder.AppendLine("<table class=\"firsttable\">");
                        builder.AppendLine("<tr>");
                        builder.AppendLine("<th colspan=\"4\">支付方式</th>");
                        builder.AppendLine("</tr>");
                        builder.AppendLine("<tr>");
                        builder.AppendLine("<td colspan=\"4\"><input type=\"radio\" name=\"pay_bank\" value=\"directPay\" " + ((row["payBank"].ToString() == "directPay") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/alipay_1.gif\" alt=\"支付宝\" /></td>");
                        builder.AppendLine("</tr>");
                        builder.AppendLine("<tr>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"ICBCB2C\" " + ((row["payBank"].ToString() == "ICBCB2C") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/ICBC_OUT.gif\" alt=\"中国工商银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"CMB\" " + ((row["payBank"].ToString() == "CMB") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/CMB_OUT.gif\" alt=\"招商银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"CCB\" " + ((row["payBank"].ToString() == "CCB") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/CCB_OUT.gif\" alt=\"中国建设银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"BOCB2C\" " + ((row["payBank"].ToString() == "BOCB2C") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/BOC_OUT.gif\" alt=\"中国银行\" /></td>");
                        builder.AppendLine("</tr>");
                        builder.AppendLine("<tr>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"ABC\" " + ((row["payBank"].ToString() == "ABC") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/ABC_OUT.gif\" alt=\"中国农业银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"COMM\" " + ((row["payBank"].ToString() == "COMM") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/COMM_OUT.gif\" alt=\"交通银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"SPDB\" " + ((row["payBank"].ToString() == "SPDB") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/SPDB_OUT.gif\" alt=\"浦发银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"GDB\" " + ((row["payBank"].ToString() == "GDB") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/GDB_OUT.gif\" alt=\"广东发展银行\" /></td>");
                        builder.AppendLine("</tr>");
                        builder.AppendLine("<tr>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"CITIC\" " + ((row["payBank"].ToString() == "CITIC") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/CITIC_OUT.gif\" alt=\"中信银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"CEBBANK\" " + ((row["payBank"].ToString() == "CEBBANK") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/CEB_OUT.gif\" alt=\"中国光大银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"CIB\" " + ((row["payBank"].ToString() == "CIB") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/CIB_OUT.gif\" alt=\"兴业银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"SDB\" " + ((row["payBank"].ToString() == "SDB") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/SDB_OUT.gif\" alt=\"深圳发展银行\" /></td>");
                        builder.AppendLine("</tr>");
                        builder.AppendLine("<tr>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"CMBC\" " + ((row["payBank"].ToString() == "CMBC") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/CMBC_OUT.gif\" alt=\"中国民生银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"HZCBB2C\" " + ((row["payBank"].ToString() == "HZCBB2C") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/HZCB_OUT.gif\" alt=\"杭州银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"SHBANK\" " + ((row["payBank"].ToString() == "SHBANK") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/SHBANK_OUT.gif\" alt=\"上海银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"NBBANK\" " + ((row["payBank"].ToString() == "NBBANK") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/NBBANK_OUT.gif\" alt=\"宁波银行\" /></td>");
                        builder.AppendLine("</tr>");
                        builder.AppendLine("<tr>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"SPABANK\" " + ((row["payBank"].ToString() == "SPABANK") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/SPABANK_OUT.gif\" alt=\"平安银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"BJRCB\" " + ((row["payBank"].ToString() == "BJRCB") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/BJRCB_OUT.gif\" alt=\"北京农村商业银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"ICBCBTB\" " + ((row["payBank"].ToString() == "ICBCBTB") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/ENV_ICBC_OUT.gif\" alt=\"中国工商银行(企业)\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"CCBBTB\" " + ((row["payBank"].ToString() == "CCBBTB") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/ENV_CCB_OUT.gif\" alt=\"中国建设银行(企业)\" /></td>");
                        builder.AppendLine("</tr>");
                        builder.AppendLine("<tr>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"SPDBB2B\" " + ((row["payBank"].ToString() == "SPDBB2B") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/ENV_SPDB_OUT.gif\" alt=\"浦发银行(企业)\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"ABCBTB\" " + ((row["payBank"].ToString() == "ABCBTB") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/ENV_ABC_OUT.gif\" alt=\"中国农业银行(企业)\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"fdb101\" " + ((row["payBank"].ToString() == "fdb101") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/FDB_OUT.gif\" alt=\"富滇银行\" /></td>");
                        builder.AppendLine("<td><input type=\"radio\" name=\"pay_bank\" value=\"PSBC-DEBIT\" " + ((row["payBank"].ToString() == "PSBC-DEBIT") ? "checked=\"checked\"" : "") + " /><img src=\"/script/images/PSBC_OUT.gif\" alt=\"中国邮政储蓄银行\" /></td>");
                        builder.AppendLine("</tr>");
                        builder.AppendLine("<tr>");
                        builder.AppendLine("<td colspan=\"4\">");
                        builder.AppendLine("<input type=\"radio\" name=\"pay_bank\" value=\"预存款\" " + ((row["payBank"].ToString() == "预存款") ? "checked=\"checked\"" : "") + " />预存款</td>");
                        builder.AppendLine("</tr>");
                        builder.AppendLine("</table>");
                    }
                }
                builder.AppendLine("</div>");
                builder.AppendLine("<table>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<th colspan=\"4\">收货信息</th>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td><strong>收货人姓名：</strong></td>");
                builder.AppendLine("<td>" + row["consignee"] + "</td>");
                builder.AppendLine("<td><strong>收货地区：</strong></td>");
                builder.AppendLine("<td>" + ((row["region"].ToString().IndexOf(",") != -1) ? (row["region"].ToString().Split(new char[] { ',' }).GetValue(0).ToString() + row["region"].ToString().Split(new char[] { ',' }).GetValue(1).ToString()) : row["region"]) + "</td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td><strong>详细地址：</strong></td>");
                builder.AppendLine("<td>" + row["address"] + "</td>");
                builder.AppendLine("<td><strong>邮政编码：</strong></td>");
                builder.AppendLine("<td>" + row["zipCode"] + "</td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td><strong>联系电话：</strong></td>");
                builder.AppendLine("<td>" + row["telephone"] + "</td>");
                builder.AppendLine("<td><strong>手机号码：</strong></td>");
                builder.AppendLine("<td>" + row["mobile"] + "</td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td colspan=\"1\"><strong>订单附言：</strong></td>");
                builder.AppendLine("<td colspan=\"3\">" + row["postscript"] + "</td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td colspan=\"1\"><strong>订单备注：</strong></td>");
                builder.AppendLine("<td colspan=\"3\">" + row["orderRemark"] + "</td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("</table>");
                builder.AppendLine("<table>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<th colspan=\"4\">支付信息</th>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td><strong>配送方式：</strong></td>");
                builder.AppendLine("<td>" + row["deliveryWay"] + "</td>");
                builder.AppendLine("<td><strong>支付方式：</strong></td>");
                builder.AppendLine("<td>" + row["payment"] + "</td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td><strong>配送费用：</strong></td>");
                builder.AppendLine("<td><em>" + string.Format("{0:C}", row["deliveryMoney"]) + "</em></td>");
                builder.AppendLine("<td><strong>订单金额：</strong></td>");
                builder.AppendLine("<td><em>" + string.Format("{0:C}", row["orderTotal"]) + "</em></td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<td><strong>赠送积分：</strong></td>");
                builder.AppendLine("<td colspan=\"3\"><em>" + row["presentedIntegra"] + "</em></td>");
                builder.AppendLine("</tr>");
                builder.AppendLine("</table>");
                DataTable orderGoodsEntitysByOrderNo = this.theOrderGoodsEntitys.GetOrderGoodsEntitysByOrderNo(base.Request.QueryString["orderNo"]);
                builder.AppendLine("<table>");
                builder.AppendLine("<tr>");
                builder.AppendLine("<th>商品图片</th>");
                builder.AppendLine("<th>商品名称</th>");
                builder.AppendLine("<th>购买价格</th>");
                builder.AppendLine("<th>购买数量</th>");
                builder.AppendLine("<th>小计</th>");
                builder.AppendLine("</tr>");
                foreach (DataRow row2 in orderGoodsEntitysByOrderNo.Rows)
                {
                    builder.AppendLine("<tr>");
                    DataTable goodGalleryByGoods = this.theGoodGallery.GetGoodGalleryByGoods(Convert.ToInt32(row2["gid"]));
                    builder.AppendLine(string.Concat(new object[] { "<td class=\"firsttd\"><img src=\"", goodGalleryByGoods.Rows[0]["thumbImg"], "\" alt=\"", goodGalleryByGoods.Rows[0]["imgAlt"], "\" /></td>" }));
                    string str = "";
                    str = str + row2["goodsName"];
                    DataTable table4 = this.theGoodsEntitysSpecifications.FrontDeskGetGoodsEntitysSpecificationsByGoodsEntitys(Convert.ToInt32(row2["goodsEntitys"]));
                    if (table4.Rows.Count > 0)
                    {
                        str = str + "[";
                    }
                    for (int i = 0; i < table4.Rows.Count; i++)
                    {
                        object obj2 = str;
                        str = string.Concat(new object[] { obj2, (i > 0) ? "&nbsp;&nbsp;" : "", table4.Rows[i]["specificationsName"], "：", table4.Rows[i]["specificationsValueName"] });
                    }
                    if (table4.Rows.Count > 0)
                    {
                        str = str + "]";
                    }
                    builder.AppendLine("<td>" + str + "</td>");
                    builder.AppendLine("<td>" + string.Format("{0:C}", row2["price"]) + "</td>");
                    builder.AppendLine("<td>" + row2["amount"] + "</td>");
                    builder.AppendLine("<td>" + string.Format("{0:C}", Convert.ToDecimal(row2["price"]) * Convert.ToInt32(row2["amount"])) + "</td>");
                    builder.AppendLine("</tr>");
                }
                builder.AppendLine("</table>");
                builder.AppendLine("<p>商品总金额：<strong>" + string.Format("{0:C}", row["goodsTotal"]) + "</strong> 配送费用：<strong>" + string.Format("{0:C}", row["deliveryMoney"]) + "</strong> 订单总金额：<strong>" + string.Format("{0:C}", row["orderTotal"]) + "</strong></p>");
            }
        }
        catch
        {
        }
        return builder;
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (base.LoginUserMember == null)
        {
            base.Response.Redirect("/cn/web_login.html?ru=" + HttpContext.Current.Request.Url.PathAndQuery.Replace("aspx", "html"));
        }
    }

}